package BookParts;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: zhunusbekova.arailym
 * Date: 22.08.13
 * Time: 13:43
 * To change this template use File | Settings | File Templates.
 */
public abstract class TextPart<T> extends ArrayList<T>{
    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        for (T part : this) {
            sb.append(part.toString());
        }
        return sb.toString();
    }
}
